Skip to content

[WIP] OCPBUGS-26498: Remove lease.Extend from performIngressConditionRemoval#590

Closed
gcs278 wants to merge 1 commit intoopenshift:masterfrom
gcs278:remove-removal-lease-extend
Closed

[WIP] OCPBUGS-26498: Remove lease.Extend from performIngressConditionRemoval#590
gcs278 wants to merge 1 commit intoopenshift:masterfrom
gcs278:remove-removal-lease-extend

Conversation

@gcs278
Copy link
Contributor

@gcs278 gcs278 commented May 1, 2024

Since performIngressConditionUpdate already extends the lease, we should not extend the lease in performIngressConditionRemoval. The lease gets over extended because the UpgradeValidation plugin and the Status plugin both attempt to update route status in two separate lease work items and both are extending the lease when there is no work to be done.

In a scenario where the Status plugin needs to admit a route, but the UpgradeValidation has no change to UnservableInFutureVersions condition, the UpgradeValidation lease work item will unnecessarily extend the lease, leading to an extra delay in the Status plugin admitted the route.

Also add a TODO item to document current limitations of doing multiple status updates in the same route reconcile loop for future developers.

Since performIngressConditionUpdate already extends the lease, we should not
extend the lease in performIngressConditionRemoval. The lease gets over
extended because the UpgradeValidation plugin and the Status plugin
both attempt to update route status in two separate lease work items and
both are extending the lease when there is no work to be done.

In a scenario where the Status plugin needs to admit a route, but the
UpgradeValidation has no change to UnservableInFutureVersions condition,
the UpgradeValidation lease work item will unnecessarily extend the lease,
leading to an extra delay in the Status plugin admitted the route.

Also add a TODO item to document current limitations of doing multiple
status updates in the same route reconcile loop for future developers.
@openshift-ci-robot openshift-ci-robot added jira/severity-moderate Referenced Jira bug's severity is moderate for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. labels May 1, 2024
@openshift-ci-robot
Copy link
Contributor

@gcs278: This pull request references Jira Issue OCPBUGS-26498, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.16.0) matches configured target version for branch (4.16.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, POST)

Requesting review from QA contact:
/cc @ShudiLi

The bug has been updated to refer to the pull request using the external bug tracker.

Details

In response to this:

Since performIngressConditionUpdate already extends the lease, we should not extend the lease in performIngressConditionRemoval. The lease gets over extended because the UpgradeValidation plugin and the Status plugin both attempt to update route status in two separate lease work items and both are extending the lease when there is no work to be done.

In a scenario where the Status plugin needs to admit a route, but the UpgradeValidation has no change to UnservableInFutureVersions condition, the UpgradeValidation lease work item will unnecessarily extend the lease, leading to an extra delay in the Status plugin admitted the route.

Also add a TODO item to document current limitations of doing multiple status updates in the same route reconcile loop for future developers.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci bot requested review from ShudiLi, frobware and knobunc May 1, 2024 04:11
@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 1, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from gcs278. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@gcs278 gcs278 changed the title OCPBUGS-26498: Remove lease.Extend from performIngressConditionRemoval [WIP] OCPBUGS-26498: Remove lease.Extend from performIngressConditionRemoval May 1, 2024
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 1, 2024
@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 1, 2024

@gcs278: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/unit 470f028 link true /test unit
ci/prow/e2e-metal-ipi-ovn-ipv6 470f028 link false /test e2e-metal-ipi-ovn-ipv6
ci/prow/e2e-aws-serial 470f028 link true /test e2e-aws-serial

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@gcs278
Copy link
Contributor Author

gcs278 commented May 1, 2024

Closing in favor of #587
/close

@openshift-ci openshift-ci bot closed this May 1, 2024
@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 1, 2024

@gcs278: Closed this PR.

Details

In response to this:

Closing in favor of #587
/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci-robot
Copy link
Contributor

@gcs278: This pull request references Jira Issue OCPBUGS-26498. The bug has been updated to no longer refer to the pull request using the external bug tracker.

Details

In response to this:

Since performIngressConditionUpdate already extends the lease, we should not extend the lease in performIngressConditionRemoval. The lease gets over extended because the UpgradeValidation plugin and the Status plugin both attempt to update route status in two separate lease work items and both are extending the lease when there is no work to be done.

In a scenario where the Status plugin needs to admit a route, but the UpgradeValidation has no change to UnservableInFutureVersions condition, the UpgradeValidation lease work item will unnecessarily extend the lease, leading to an extra delay in the Status plugin admitted the route.

Also add a TODO item to document current limitations of doing multiple status updates in the same route reconcile loop for future developers.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. jira/severity-moderate Referenced Jira bug's severity is moderate for the branch this PR is targeting. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants